package com.dreamthen.entity;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @Author zengms
 * @Date 2023-11-02 20:05:22
 **/
public class User {
    private Integer id;
    private String name;
    private String[] alias; //外号
    private List<String> hobbies; //爱好
    private Map<String,String> dataMap; //亲属
    private Role role;//角色
    private List<Dept> deptList; //朋友

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getAlias() {
        return alias;
    }

    public void setAlias(String[] alias) {
        this.alias = alias;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    public Map<String, String> getDataMap() {
        return dataMap;
    }

    public void setDataMap(Map<String, String> dataMap) {
        this.dataMap = dataMap;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public List<Dept> getDeptList() {
        return deptList;
    }

    public void setDeptList(List<Dept> deptList) {
        this.deptList = deptList;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", alias=" + Arrays.toString(alias) +
                ", hobbies=" + hobbies +
                ", dataMap=" + dataMap +
                ", role=" + role +
                ", deptList=" + deptList +
                '}';
    }
}
